﻿<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>活动详情 - 模切材料小管家</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            /* TDesign 工业品色彩系�?*/
            --primary-color: #0052d9;
            --primary-light: #266fe8;
            --primary-dark: #003cab;
            --secondary-color: #f2f3ff;
            --accent-color: #e37318;
            --success-color: #00a870;
            --warning-color: #ed7b2f;
            --error-color: #d54941;
            
            /* 背景色系 */
            --bg-color-page: #f5f7fa;
            --bg-color-container: #ffffff;
            --bg-color-secondray: #f8f9fc;
            
            /* 边框和分割线 */
            --border-color: #e7e7e7;
            --border-color-light: #f0f0f0;
            --border-radius-small: 3px;
            --border-radius-medium: 6px;
            --border-radius-large: 9px;
            
            /* 文字色彩 */
            --text-primary: #1a1a1a;
            --text-secondary: #4e5969;
            --text-placeholder: #86909c;
            --text-disabled: #c9cdd4;
            
            /* 阴影系统 */
            --shadow-1: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
            --shadow-2: 0 1px 4px 0 rgba(0, 0, 0, 0.08);
            --shadow-3: 0 4px 8px 0 rgba(0, 0, 0, 0.12);
            
            /* 间距系统 */
            --space-1: 4px;
            --space-2: 8px;
            --space-3: 12px;
            --space-4: 16px;
            --space-5: 20px;
            --space-6: 24px;
            --space-8: 32px;
            --space-10: 40px;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        }
        
        body {
            background-color: var(--bg-color-page);
            color: var(--text-primary);
            font-size: 14px;
            line-height: 1.5;
            padding-bottom: 120px;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }
        
        .container {
            max-width: 480px;
            margin: 0 auto;
            background: var(--bg-color-container);
            min-height: 100vh;
            box-shadow: var(--shadow-1);
            position: relative;
            overflow-x: hidden;
        }
        
        /* 头部样式 - TDesign 简约风�?*/
        .header {
            background: var(--primary-color);
            color: white;
            padding: var(--space-4) var(--space-4) var(--space-5);
            position: relative;
            z-index: 10;
        }
        
        .top-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: var(--space-4);
        }
        
        .back-btn {
            font-size: 18px;
            cursor: pointer;
            opacity: 0.9;
            transition: opacity 0.2s ease;
        }
        
        .back-btn:hover {
            opacity: 1;
        }
        
        .page-title {
            font-weight: 500;
            font-size: 16px;
        }
        
        .actions {
            display: flex;
            gap: var(--space-5);
        }
        
        .actions i {
            font-size: 16px;
            cursor: pointer;
            opacity: 0.9;
            transition: opacity 0.2s ease;
        }
        
        .actions i:hover {
            opacity: 1;
        }
        
        /* 主要内容区域 */
        .main-content {
            padding: var(--space-4);
        }
        
        /* 活动图片 */
        .activity-image {
            width: 100%;
            height: 200px;
            background: var(--bg-color-secondray);
            border-radius: var(--border-radius-medium);
            margin-bottom: var(--space-4);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-placeholder);
            font-size: 48px;
            position: relative;
        }
        
        .activity-status {
            position: absolute;
            top: var(--space-2);
            right: var(--space-2);
            padding: var(--space-1) var(--space-2);
            border-radius: var(--border-radius-small);
            font-size: 11px;
            font-weight: 500;
        }
        
        .status-ongoing {
            background: var(--success-color);
            color: white;
        }
        
        .status-upcoming {
            background: var(--warning-color);
            color: white;
        }
        
        .status-ended {
            background: var(--text-disabled);
            color: white;
        }
        
        /* 活动基本信息 */
        .activity-info {
            background: var(--bg-color-container);
            border-radius: var(--border-radius-medium);
            padding: var(--space-4);
            margin-bottom: var(--space-4);
            box-shadow: var(--shadow-1);
            border: 1px solid var(--border-color-light);
        }
        
        .activity-title {
            font-size: 20px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: var(--space-3);
            line-height: 1.3;
        }
        
        .activity-price {
            font-size: 18px;
            font-weight: 600;
            color: var(--accent-color);
            margin-bottom: var(--space-3);
        }
        
        .activity-price.free {
            color: var(--success-color);
        }
        
        .activity-meta {
            display: flex;
            flex-direction: column;
            gap: var(--space-2);
        }
        
        .meta-item {
            display: flex;
            align-items: center;
            gap: var(--space-2);
            color: var(--text-secondary);
            font-size: 14px;
        }
        
        .meta-item i {
            color: var(--text-placeholder);
            width: 16px;
            text-align: center;
        }
        
        /* 详细信息卡片 */
        .info-card {
            background: var(--bg-color-container);
            border-radius: var(--border-radius-medium);
            margin-bottom: var(--space-4);
            box-shadow: var(--shadow-1);
            border: 1px solid var(--border-color-light);
            overflow: hidden;
        }
        
        .card-header {
            padding: var(--space-4);
            background: var(--bg-color-secondray);
            border-bottom: 1px solid var(--border-color-light);
        }
        
        .card-title {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-primary);
            display: flex;
            align-items: center;
        }
        
        .card-title i {
            margin-right: var(--space-2);
            color: var(--success-color);
            font-size: 14px;
        }
        
        .card-content {
            padding: var(--space-4);
        }
        
        .info-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: var(--space-2) 0;
            border-bottom: 1px solid var(--border-color-light);
        }
        
        .info-row:last-child {
            border-bottom: none;
        }
        
        .info-label {
            color: var(--text-secondary);
            font-size: 13px;
        }
        
        .info-value {
            color: var(--text-primary);
            font-size: 13px;
            font-weight: 500;
        }
        
        .activity-description {
            font-size: 14px;
            color: var(--text-primary);
            line-height: 1.6;
            margin-bottom: var(--space-3);
        }
        
        .agenda-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        
        .agenda-item {
            display: flex;
            align-items: flex-start;
            padding: var(--space-2) 0;
            border-bottom: 1px solid var(--border-color-light);
        }
        
        .agenda-item:last-child {
            border-bottom: none;
        }
        
        .agenda-time {
            background: var(--secondary-color);
            color: var(--primary-color);
            padding: var(--space-1) var(--space-2);
            border-radius: var(--border-radius-small);
            font-size: 11px;
            font-weight: 500;
            margin-right: var(--space-3);
            min-width: 60px;
            text-align: center;
        }
        
        .agenda-content {
            flex: 1;
        }
        
        .agenda-title {
            font-size: 13px;
            font-weight: 500;
            color: var(--text-primary);
            margin-bottom: var(--space-1);
        }
        
        .agenda-speaker {
            font-size: 12px;
            color: var(--text-secondary);
        }
        
        .speaker-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        
        .speaker-item {
            display: flex;
            align-items: center;
            padding: var(--space-2) 0;
            border-bottom: 1px solid var(--border-color-light);
        }
        
        .speaker-item:last-child {
            border-bottom: none;
        }
        
        .speaker-avatar {
            width: 40px;
            height: 40px;
            background: var(--secondary-color);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary-color);
            font-size: 16px;
            margin-right: var(--space-3);
        }
        
        .speaker-info {
            flex: 1;
        }
        
        .speaker-name {
            font-size: 14px;
            font-weight: 500;
            color: var(--text-primary);
            margin-bottom: var(--space-1);
        }
        
        .speaker-title {
            font-size: 12px;
            color: var(--text-secondary);
        }
        
        /* 底部操作�?*/
        .bottom-actions {
            position: fixed;
            bottom: 64px;
            left: 0;
            right: 0;
            background: var(--bg-color-container);
            padding: var(--space-4);
            border-top: 1px solid var(--border-color-light);
            display: flex;
            gap: var(--space-2);
            z-index: 100;
            max-width: 480px;
            margin: 0 auto;
        }
        
        .btn {
            flex: 1;
            padding: var(--space-3);
            border: none;
            border-radius: var(--border-radius-medium);
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        
        .btn-secondary {
            background: var(--bg-color-secondray);
            color: var(--text-secondary);
            border: 1px solid var(--border-color-light);
        }
        
        .btn-secondary:hover {
            background: var(--border-color-light);
        }
        
        .btn-primary {
            background: var(--primary-color);
            color: white;
        }
        
        .btn-primary:hover {
            background: var(--primary-dark);
        }
        
        .btn:disabled {
            background: var(--text-disabled);
            color: white;
            cursor: not-allowed;
        }
        
        /* 底部导航�?- TDesign 简约风�?*/
        .tabbar {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: var(--bg-color-container);
            border-top: 1px solid var(--border-color);
            display: flex;
            z-index: 100;
            max-width: 480px;
            margin: 0 auto;
            height: 64px;
        }
        
        .tab-item {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: var(--space-2) 0;
            cursor: pointer;
            transition: color 0.2s ease;
            color: var(--text-placeholder);
        }
        
        .tab-item.active {
            color: var(--primary-color);
        }
        
        .tab-item:hover {
            color: var(--primary-light);
        }
        
        .tab-item i {
            font-size: 18px;
            margin-bottom: var(--space-1);
        }
        
        .tab-item span {
            font-size: 10px;
        }
    </style>
</head>
<body>
    <div class="container">
        <!-- 头部区域 -->
        <div class="header">
            <div class="top-bar">
                <div class="back-btn" onclick="history.back()">
                    <i class="fas fa-arrow-left"></i>
                </div>
                <div class="page-title">活动详情</div>
                <div class="actions">
                    <i class="fas fa-share-alt" onclick="shareActivity()"></i>
                    <i class="fas fa-heart" onclick="toggleFavorite()"></i>
                </div>
            </div>
        </div>
        
        <!-- 主要内容区域 -->
        <div class="main-content">
            <!-- 活动图片 -->
            <div class="activity-image">
                <i class="fas fa-users" id="activityIcon"></i>
                <div class="activity-status status-upcoming" id="activityStatus">即将开�?/div>
            </div>
            
            <!-- 活动基本信息 -->
            <div class="activity-info">
                <div class="activity-title" id="activityTitle">2024年模切材料行业技术交流会</div>
                <div class="activity-price free" id="activityPrice">免费</div>
                <div class="activity-meta">
                    <div class="meta-item">
                        <i class="fas fa-calendar"></i>
                        <span id="activityDate">2024�?�?5�?09:00-17:00</span>
                    </div>
                    <div class="meta-item">
                        <i class="fas fa-map-marker-alt"></i>
                        <span id="activityLocation">深圳国际会展中心</span>
                    </div>
                    <div class="meta-item">
                        <i class="fas fa-users"></i>
                        <span id="activityAttendees">已报�?120 �?/span>
                    </div>
                </div>
            </div>
            
            <!-- 活动描述 -->
            <div class="info-card">
                <div class="card-header">
                    <div class="card-title">
                        <i class="fas fa-file-text"></i>
                        活动描述
                    </div>
                </div>
                <div class="card-content">
                    <div class="activity-description" id="activityDescription">
                        汇聚行业专家，分享最新技术趋势，探讨模切材料在电子、汽车、包装等领域的应用前景。本次活动将邀请知名企业技术总监、行业专家进行主题演讲，为参会者提供最新的技术资讯和行业洞察�?
                    </div>
                </div>
            </div>
            
            <!-- 活动议程 -->
            <div class="info-card">
                <div class="card-header">
                    <div class="card-title">
                        <i class="fas fa-list"></i>
                        活动议程
                    </div>
                </div>
                <div class="card-content">
                    <ul class="agenda-list" id="agendaList">
                        <li class="agenda-item">
                            <div class="agenda-time">09:00</div>
                            <div class="agenda-content">
                                <div class="agenda-title">签到入场</div>
                            </div>
                        </li>
                        <li class="agenda-item">
                            <div class="agenda-time">09:30</div>
                            <div class="agenda-content">
                                <div class="agenda-title">开幕式致辞</div>
                                <div class="agenda-speaker">主办方代�?/div>
                            </div>
                        </li>
                        <li class="agenda-item">
                            <div class="agenda-time">10:00</div>
                            <div class="agenda-content">
                                <div class="agenda-title">模切材料技术发展趋�?/div>
                                <div class="agenda-speaker">张工程师 - 某知名企业技术总监</div>
                            </div>
                        </li>
                        <li class="agenda-item">
                            <div class="agenda-time">11:00</div>
                            <div class="agenda-content">
                                <div class="agenda-title">茶歇交流</div>
                            </div>
                        </li>
                        <li class="agenda-item">
                            <div class="agenda-time">11:30</div>
                            <div class="agenda-content">
                                <div class="agenda-title">环保材料应用案例分享</div>
                                <div class="agenda-speaker">李经�?- 环保材料专家</div>
                            </div>
                        </li>
                        <li class="agenda-item">
                            <div class="agenda-time">12:30</div>
                            <div class="agenda-content">
                                <div class="agenda-title">午餐休息</div>
                            </div>
                        </li>
                        <li class="agenda-item">
                            <div class="agenda-time">14:00</div>
                            <div class="agenda-content">
                                <div class="agenda-title">圆桌讨论：行业挑战与机遇</div>
                                <div class="agenda-speaker">多位行业专家</div>
                            </div>
                        </li>
                        <li class="agenda-item">
                            <div class="agenda-time">16:00</div>
                            <div class="agenda-content">
                                <div class="agenda-title">自由交流与资源对�?/div>
                            </div>
                        </li>
                        <li class="agenda-item">
                            <div class="agenda-time">17:00</div>
                            <div class="agenda-content">
                                <div class="agenda-title">活动结束</div>
                            </div>
                        </li>
                    </ul>
                </div>
            </div>
            
            <!-- 演讲嘉宾 -->
            <div class="info-card">
                <div class="card-header">
                    <div class="card-title">
                        <i class="fas fa-microphone"></i>
                        演讲嘉宾
                    </div>
                </div>
                <div class="card-content">
                    <ul class="speaker-list" id="speakerList">
                        <li class="speaker-item">
                            <div class="speaker-avatar">
                                <i class="fas fa-user"></i>
                            </div>
                            <div class="speaker-info">
                                <div class="speaker-name">张工程师</div>
                                <div class="speaker-title">某知名企业技术总监</div>
                            </div>
                        </li>
                        <li class="speaker-item">
                            <div class="speaker-avatar">
                                <i class="fas fa-user"></i>
                            </div>
                            <div class="speaker-info">
                                <div class="speaker-name">李经�?/div>
                                <div class="speaker-title">环保材料专家</div>
                            </div>
                        </li>
                        <li class="speaker-item">
                            <div class="speaker-avatar">
                                <i class="fas fa-user"></i>
                            </div>
                            <div class="speaker-info">
                                <div class="speaker-name">王博�?/div>
                                <div class="speaker-title">材料科学研究院研究员</div>
                            </div>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
        
        <!-- 底部操作�?-->
        <div class="bottom-actions">
            <button class="btn btn-secondary" onclick="contactOrganizer()">
                <i class="fas fa-phone"></i>
                联系主办�?
            </button>
            <button class="btn btn-primary" onclick="registerActivity()" id="registerBtn">
                <i class="fas fa-user-plus"></i>
                立即报名
            </button>
        </div>
        
        <!-- 底部导航 -->
        <div class="tabbar">
            <div class="tab-item" onclick="location.href='home.html'">
                <i class="fas fa-home"></i>
                <span>首页</span>
            </div>
            <div class="tab-item" onclick="location.href='demand-list.html'">
                <i class="fas fa-search"></i>
                <span>求购</span>
            </div>
            <div class="tab-item" onclick="location.href='publish-select.html'">
                <i class="fas fa-plus-circle"></i>
                <span>发布</span>
            </div>
            <div class="tab-item" onclick="location.href='consultation.html'">
                <i class="fas fa-comments"></i>
                <span>客服</span>
            </div>
            <div class="tab-item" onclick="location.href='profile.html'">
                <i class="fas fa-user"></i>
                <span>我的</span>
            </div>
        </div>
    </div>
    
    <script>
        // 模拟活动数据
        const activityData = {
            1: {
                title: '2024年模切材料行业技术交流会',
                description: '汇聚行业专家，分享最新技术趋势，探讨模切材料在电子、汽车、包装等领域的应用前景。本次活动将邀请知名企业技术总监、行业专家进行主题演讲，为参会者提供最新的技术资讯和行业洞察�?,
                date: '2024�?�?5�?09:00-17:00',
                location: '深圳国际会展中心',
                price: 0,
                status: 'upcoming',
                image: 'fas fa-users',
                attendees: 120
            },
            2: {
                title: '胶带技术创新研讨会',
                description: '深入探讨胶带材料的最新技术突破，包括环保型胶粘剂、高性能基材等前沿技术�?,
                date: '2024�?�?0�?14:00-18:00',
                location: '上海浦东新区',
                price: 299,
                status: 'ongoing',
                image: 'fas fa-flask',
                attendees: 85
            }
        };
        
        // 加载活动数据
        function loadActivityData() {
            const urlParams = new URLSearchParams(window.location.search);
            const activityId = urlParams.get('id');
            
            if (activityId && activityData[activityId]) {
                const activity = activityData[activityId];
                
                // 更新页面内容
                document.getElementById('activityTitle').textContent = activity.title;
                document.getElementById('activityDescription').textContent = activity.description;
                document.getElementById('activityDate').textContent = activity.date;
                document.getElementById('activityLocation').textContent = activity.location;
                document.getElementById('activityAttendees').textContent = `已报�?${activity.attendees} 人`;
                document.getElementById('activityIcon').className = activity.image;
                
                // 更新价格
                const priceElement = document.getElementById('activityPrice');
                if (activity.price === 0) {
                    priceElement.textContent = '免费';
                    priceElement.className = 'activity-price free';
                } else {
                    priceElement.textContent = `¥${activity.price}`;
                    priceElement.className = 'activity-price';
                }
                
                // 更新状�?
                const statusElement = document.getElementById('activityStatus');
                const statusMap = {
                    'ongoing': '进行�?,
                    'upcoming': '即将开�?,
                    'ended': '已结�?
                };
                statusElement.textContent = statusMap[activity.status] || activity.status;
                statusElement.className = `activity-status status-${activity.status}`;
                
                // 更新注册按钮
                const registerBtn = document.getElementById('registerBtn');
                if (activity.status === 'ended') {
                    registerBtn.textContent = '已结�?;
                    registerBtn.disabled = true;
                } else if (activity.status === 'ongoing') {
                    registerBtn.innerHTML = '<i class="fas fa-user-plus"></i> 立即参加';
                } else {
                    registerBtn.innerHTML = '<i class="fas fa-user-plus"></i> 立即报名';
                }
            }
        }
        
        // 分享活动
        function shareActivity() {
            if (navigator.share) {
                navigator.share({
                    title: document.getElementById('activityTitle').textContent,
                    text: document.getElementById('activityDescription').textContent,
                    url: window.location.href
                });
            } else {
                navigator.clipboard.writeText(window.location.href).then(() => {
                    alert('活动链接已复制到剪贴�?);
                });
            }
        }
        
        // 切换收藏
        function toggleFavorite() {
            const heartIcon = document.querySelector('.fa-heart');
            if (heartIcon.classList.contains('fas')) {
                heartIcon.classList.remove('fas');
                heartIcon.classList.add('far');
                heartIcon.style.color = '';
            } else {
                heartIcon.classList.remove('far');
                heartIcon.classList.add('fas');
                heartIcon.style.color = 'var(--error-color)';
            }
        }
        
        // 联系主办�?
        function contactOrganizer() {
            alert('联系主办方功能开发中...');
        }
        
        // 报名活动
        function registerActivity() {
            const registerBtn = document.getElementById('registerBtn');
            if (registerBtn.disabled) {
                return;
            }
            
            const activityTitle = document.getElementById('activityTitle').textContent;
            alert(`报名${activityTitle}成功！`);
        }
        
        // 页面加载完成后初始化
        document.addEventListener('DOMContentLoaded', function() {
            loadActivityData();
        });
        
        // 底部导航切换
        document.querySelectorAll('.tab-item').forEach(item => {
            item.addEventListener('click', function() {
                document.querySelectorAll('.tab-item').forEach(t => t.classList.remove('active'));
                this.classList.add('active');
            });
        });
    </script>
</body>
</html>


